package com.d0320;

import java.io.*;

public class FileCopy {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = null;
        FileOutputStream fos = null;
         fis = new FileInputStream(new File("src/com/d0320/data.txt"));
         fos = new FileOutputStream(new File("src/com/d0320/data1.txt"));
         int x = 0;
       while ((x=fis.read())!=-1){
           fos.write(x);
        }
        if (null!=fis) {
            fos.close();
            fis.close();
        }
    }
}
